home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
FREENET
/
DEVOS
/
FDSOURCE.ARC
/
h
/
freedial
< prev
next >
Wrap
Text File
|
1996-04-12
|
2KB
|
59 lines
#include "OS:wimp.h"
#include "menu.h"
#define APPDIR "<FreeDial$Dir>"
#define APPPRE "FreeDial"
#define CONFIG "<" APPPRE "$Config>"
#define MODEMS CONFIG ".Modems"
#define PROVIDERS CONFIG ".Providers"
#define STACKS CONFIG ".Stacks"
#define APPNAME "FreeDial"
#define APPAUTHOR "Gert-Jan de Vos"
#define APPVER "0.23 (" __DATE__ ")"
typedef struct {
const char *provider,
*country,
*location,
*attempts,
*phone,
*script,
*stack,
*login,
*modem,
*driver,
*baud;
char *domain,
*ns[3];
int port, delay, brief;
} settings_t;
enum {
TIMEOUT=1,
BUSY=2,
CARRIER=4,
ENDDIAL=8
};
extern settings_t settings;
extern wimp_t my_handle;
extern int finished, modem_state;
extern list_t *log_l, *login_l;
extern os_coord menu_pos;
extern wimp_w info_w, dial_w, setup_w, set_provider_w, driver_info_w,
set_stack_w, set_modem_w, provider_w, phone_w,
login_w, save_w, passwd_w, brief_w, verbose_w;
extern int delay_table[];
extern void poll(int preempt);
extern bool setvars(void);
extern int dial(void);
extern void hangup(void);
extern void load_resolve(void);
extern void save_resolve(char *provider, char *domain, char *ns1, char *ns2, char *ns3);
extern void resconf(void);
extern void save_log(const char *fname);
extern char *encode_pw(const char *login, char *passwd);
extern char *decode_pw(const char *login, char *passwd);